import request from '@/utils/request'

// 查询上门服务列表
export function listCommunity_service(query) {
  return request({
    url: '/ds/community_service/list',
    method: 'get',
    params: query
  })
}

// 查询上门服务详细
export function getCommunity_service(id) {
  return request({
    url: '/ds/community_service/' + id,
    method: 'get'
  })
}

// 新增上门服务
export function addCommunity_service(data) {
  return request({
    url: '/ds/community_service',
    method: 'post',
    data: data
  })
}

// 修改上门服务
export function updateCommunity_service(data) {
  return request({
    url: '/ds/community_service',
    method: 'put',
    data: data
  })
}

// 删除上门服务
export function delCommunity_service(id) {
  return request({
    url: '/ds/community_service/' + id,
    method: 'delete'
  })
}
